Redirection from DocumentRoot
Redirection from DocumentRoot
am 11.01.2010 10:38:39 von Petr Hracek
--0015174015c05c47c4047ce04d2b
Content-Type: text/plain; charset=UTF-8
Hello *,
sorry for bother you with this (may be simple) question but I have following
problem.
Let's say that my document root is situated to the /usr/apache/htdocs/
Is it possible to configure apache so that after accessing to the
DocumentRoot page there
will be done automatic redirection to the /opt/apache/htdocs/testInstall so
that in URL will be seen
e.g. http://
thank you in advance
best regards
Petr
--0015174015c05c47c4047ce04d2b
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Hello *,
sorry for bother you with this (may be simple) question but=
I have following problem.
Let's say that my document root is situat=
ed to the /usr/apache/htdocs/
Is it possible to configure apache so =
that after accessing to the DocumentRoot page there
will be done automatic redirection to the /opt/apache/htdocs/testInstall so=
that in URL will be seen
e.g. http://<ipadress/testInstall/?
=
thank you in advance
best regards
Petr
--0015174015c05c47c4047ce04d2b--
Re: Redirection from DocumentRoot
am 11.01.2010 17:02:35 von Nilesh Govindrajan
On 01/11/2010 03:08 PM, Petr Hracek wrote:
> Hello *,
>
> sorry for bother you with this (may be simple) question but I have
> following problem.
> Let's say that my document root is situated to the /usr/apache/htdocs/
>
> Is it possible to configure apache so that after accessing to the
> DocumentRoot page there
> will be done automatic redirection to the /opt/apache/htdocs/testInstall
> so that in URL will be seen
> e.g. http://
>
> thank you in advance
>
> best regards
> Petr
>
>
You can have a host (or vhost) with only 1 docroot. You can create a
symlink to /opt/apache/htdocs/testInstall in /usr/apache/htdocs -
ln -svt /usr/apache/htdocs /opt/apache/htdocs/testInstall
Then configure apache like this -
Options +FollowSymLinks
RedirectPermanent / /testInstall
--
Nilesh Govindarajan
Site & Server Adminstrator
www.itech7.com
------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: Redirection from DocumentRoot
am 12.01.2010 08:58:31 von Petr Hracek
--001636c5a86f212231047cf305aa
Content-Type: text/plain; charset=UTF-8
I have tried your proposal but it returns during the restarting of
apache2.2:
Redirect to non-URL.
Unfortunatelly I do not know the name of the server, respectively URL is
always based on the IP address on the machine. E.g. http:///....
2010/1/11 Nilesh Govindarajan
> On 01/11/2010 03:08 PM, Petr Hracek wrote:
>
>> Hello *,
>>
>> sorry for bother you with this (may be simple) question but I have
>> following problem.
>> Let's say that my document root is situated to the /usr/apache/htdocs/
>>
>> Is it possible to configure apache so that after accessing to the
>> DocumentRoot page there
>> will be done automatic redirection to the /opt/apache/htdocs/testInstall
>> so that in URL will be seen
>> e.g. http://
>>
>> thank you in advance
>>
>> best regards
>> Petr
>>
>>
>>
> You can have a host (or vhost) with only 1 docroot. You can create a
> symlink to /opt/apache/htdocs/testInstall in /usr/apache/htdocs -
>
> ln -svt /usr/apache/htdocs /opt/apache/htdocs/testInstall
>
> Then configure apache like this -
>
>
>
> Options +FollowSymLinks
>
>
>
> RedirectPermanent / /testInstall
>
> --
> Nilesh Govindarajan
> Site & Server Adminstrator
> www.itech7.com
>
> ------------------------------------------------------------ ---------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>
--001636c5a86f212231047cf305aa
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
I have tried your proposal but it returns during the restarting of apache2.=
2:
Redirect to non-URL.
Unfortunatelly I do not know the name of =
the server, respectively URL is always based on the IP address on the machi=
ne. E.g. http://<IP_address>/....
2010/1/11 Nilesh Govindarajan
tr"><>=
04, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On 01/11/2010 03:08 PM, Petr Hracek wrote=
:
204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello *,
sorry for bother you with this (may be simple) question but I have
following problem.
Let's say that my document root is situated to the /usr/apache/htdocs/<=
br>
Is it possible to configure apache so that after accessing to the
DocumentRoot page there
will be done automatic redirection to the /opt/apache/htdocs/testInstall
>
so that in URL will be seen
e.g. http://<ipadress/testInstall/?
thank you in advance
best regards
Petr
You can have a host (or vhost) with only 1 docroot. You can create a symlin=
k to /opt/apache/htdocs/testInstall in /usr/apache/htdocs -
ln -svt /usr/apache/htdocs /opt/apache/htdocs/testInstall
Then configure apache like this -
    <Directory /usr/apache/htdocs>
       Â
        Options +FollowSymL=
inks
   Â
    </Directory>
    RedirectPermanent / /testInstall
--
Nilesh Govindarajan
Site & Server Adminstrator
------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.<=
br>
See <URL:
lank">http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail:
g" target=3D"_blank">users-unsubscribe@httpd.apache.org
 "  from the digest:
cribe@httpd.apache.org" target=3D"_blank">users-digest-unsubscribe@httpd.ap=
ache.org
For additional commands, e-mail:
org" target=3D"_blank">users-help@httpd.apache.org
--001636c5a86f212231047cf305aa--
Re: Redirection from DocumentRoot
am 12.01.2010 09:15:01 von Devraj Mukherjee
You can also you use
Alias /testinstall /opt/apache/htdocs/testinstall
On Mon, Jan 11, 2010 at 8:38 PM, Petr Hracek wrote:
> Hello *,
>
> sorry for bother you with this (may be simple) question but I have following
> problem.
> Let's say that my document root is situated to the /usr/apache/htdocs/
>
> Is it possible to configure apache so that after accessing to the
> DocumentRoot page there
> will be done automatic redirection to the /opt/apache/htdocs/testInstall so
> that in URL will be seen
> e.g. http://
>
> thank you in advance
>
> best regards
> Petr
>
>
>
--
Follow me on Twitter, http://twitter.com/mdevraj
"The secret impresses no-one, the trick you use it for is everything"
- Alfred Borden (The Prestiege)
------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: Redirection from DocumentRoot
am 12.01.2010 09:54:24 von Petr Hracek
--00504502c715fb4f1f047cf3cc28
Content-Type: text/plain; charset=UTF-8
Unfortunatelly I do not have any idea how to use Alias for redirecting page
so the URL in web browser will be changed as well.
Could you please send me a short example?
best regards
Petr
2010/1/12 Devraj Mukherjee
> You can also you use
>
> Alias /testinstall /opt/apache/htdocs/testinstall
>
>
> On Mon, Jan 11, 2010 at 8:38 PM, Petr Hracek wrote:
> > Hello *,
> >
> > sorry for bother you with this (may be simple) question but I have
> following
> > problem.
> > Let's say that my document root is situated to the /usr/apache/htdocs/
> >
> > Is it possible to configure apache so that after accessing to the
> > DocumentRoot page there
> > will be done automatic redirection to the /opt/apache/htdocs/testInstall
> so
> > that in URL will be seen
> > e.g. http://
> >
> > thank you in advance
> >
> > best regards
> > Petr
> >
> >
> >
>
>
>
> --
> Follow me on Twitter, http://twitter.com/mdevraj
>
> "The secret impresses no-one, the trick you use it for is everything"
> - Alfred Borden (The Prestiege)
>
> ------------------------------------------------------------ ---------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>
--00504502c715fb4f1f047cf3cc28
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Unfortunatelly I do not have any idea how to use Alias for redirecting page=
so the URL in web browser will be changed as well.
Could you please=
send me a short example?
best regards
Petr
gmail_quote">
2010/1/12 Devraj Mukherjee
<
mail.com">devraj@gmail.com>
te" style=3D"border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt=
0.8ex; padding-left: 1ex;">
You can also you use
Alias /testinstall /opt/apache/htdocs/testinstall
On Mon, Jan 11, 2010 at 8:38 PM, Petr Hracek <
@gmail.com">phracek2@gmail.com> wrote:
> Hello *,
>
> sorry for bother you with this (may be simple) question but I have fol=
lowing
> problem.
> Let's say that my document root is situated to the /usr/apache/htd=
ocs/
>
> Is it possible to configure apache so that after accessing to the
> DocumentRoot page there
> will be done automatic redirection to the /opt/apache/htdocs/testInsta=
ll so
> that in URL will be seen
> e.g. http://<ipadress/testInstall/?
>
> thank you in advance
>
> best regards
> Petr
>
>
>
--
Follow me on Twitter,
nk">http://twitter.com/mdevraj
"The secret impresses no-one, the trick you use it for is everything&q=
uot;
- Alfred Borden (The Prestiege)
--00504502c715fb4f1f047cf3cc28--
Re: Redirection from DocumentRoot
am 12.01.2010 17:39:55 von Nilesh Govindrajan
On 01/12/2010 01:45 PM, Devraj Mukherjee wrote:
> You can also you use
>
> Alias /testinstall /opt/apache/htdocs/testinstall
>
>
> On Mon, Jan 11, 2010 at 8:38 PM, Petr Hracek wrote:
>> Hello *,
>>
>> sorry for bother you with this (may be simple) question but I have following
>> problem.
>> Let's say that my document root is situated to the /usr/apache/htdocs/
>>
>> Is it possible to configure apache so that after accessing to the
>> DocumentRoot page there
>> will be done automatic redirection to the /opt/apache/htdocs/testInstall so
>> that in URL will be seen
>> e.g. http://
>>
>> thank you in advance
>>
>> best regards
>> Petr
>>
>>
>>
>
>
>
But that wouldn't redirect. He wants to display a different URL in the
addressbar.
--
Nilesh Govindarajan
Site & Server Adminstrator
www.itech7.com
------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org